{% extends 'admins/index.html' %}
{% load static %}
{% block table %}
    <div class="layui-form demoTable">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">图书名：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" name="bookName" id="bookName" autocomplete="off">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">借书人：</label>
                <div class="layui-input-inline">
                    <input class="layui-input" name="userName" id="userName" autocomplete="off">
                </div>
            </div>
            <button class="layui-btn" data-type="reload">搜索</button>
        </div>
    </div>


    <table class="layui-hide" id="booksRecdingList" lay-filter="booksRecdingList"></table>

    <script type="text/html" id="barDemo">
        {% verbatim %}
        {{#  if(d.status == '1' ){     }}
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="guiHun">归还图书</a>
        {{#    }   }}
        {% endverbatim %}

        {% ifequal userRole 1 %}
            {% verbatim %}
            {{#  if(d.status == '2'){ }}
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="queReHun">确认归还</a>
            {{#  } }}
            {% endverbatim %}
        {% endifequal %}
    </script>
    <script src="{% static 'js/booksRecding/list.js' %}"></script>
{% endblock %}